//ToString() 方法检索存储在指针变量所引用位置的数据
using System;
namespace UnsafeCodeApplication
{
  class Program
  {
    public static void Main()
    {
      unsafe
      {
        int var = 20;
        int* p = &var;
        Console.WriteLine("Data is: {0} ", var);
        Console.WriteLine("Data is: {0} ", p->ToString());
        Console.WriteLine("Address is: {0} ", (int)p);
      }
      Console.ReadKey();
    }
  }
}